//
//  TraintargetSlider.h
//  CoolTennisBall
//
//  Created by Coollang on 16/7/20.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import "ASValueTrackingSlider.h"

#define UnitSpace(Total,span) (100/(Total/span))



@interface TraintargetSlider : ASValueTrackingSlider
/**
 *  当前的的值
 */
@property (nonatomic, assign)NSInteger curretTarget;
/**
 *  分度值
 */
@property (nonatomic, assign)CGFloat sliderSpan;

/** 最大值 */
@property (nonatomic, assign)NSInteger maxValue;

/** 最小值 */
@property (nonatomic, assign)NSInteger minValue;

- (void)setSliderValueAndCurrentTarget:(NSInteger)CurrentTarget;

- (void)setSliderSpan:(CGFloat)span maxValue:(NSInteger)maxValue dataSource:(id<ASValueTrackingSliderDataSource>)dataSource;

- (void)setSliderSpan:(CGFloat)span maxValue:(NSInteger)maxValue minValue:(NSInteger)minValue dataSource:(id<ASValueTrackingSliderDataSource>)dataSource;

@end
